package com.yoo.module_base.view.index.slideview

import android.view.View

interface IndexSlideCardListener {
    fun onCardDragging(direction: IndexSlideCardDirection?, ratio: Float)
    fun onCardSwiped(direction: IndexSlideCardDirection?)
    fun onCardRewound()
    fun onCardCanceled()
    fun onCardAppeared(view: View?, position: Int)
    fun onCardDisappeared(view: View?, position: Int)

    companion object {
        val DEFAULT: IndexSlideCardListener = object : IndexSlideCardListener {
            override fun onCardDragging(direction: IndexSlideCardDirection?, ratio: Float) {}
            override fun onCardSwiped(direction: IndexSlideCardDirection?) {}
            override fun onCardRewound() {}
            override fun onCardCanceled() {}
            override fun onCardAppeared(view: View?, position: Int) {}
            override fun onCardDisappeared(view: View?, position: Int) {}
        }
    }
}
